message(STATUS "System name is ${CMAKE_SYSTEM_NAME}")
if(CMAKE_SYSTEM_NAME MATCHES "Windows")
  set(TRAINING_BOOK_RM_COMMAND "del")
  set(TRAINING_BOOK_MKDIR_COMMAND "md")
  set(TRAINING_BOOK_USER_DIR "C:\\\\Users\\\\Arnaud")
  set(TRAINING_BOOK_USER_DIR_ENV_VAR "HOMEPATH" )
  set(TRAINING_BOOK_USER_DIR_DRIVE_ENV_VAR "HOMEDRIVE")
  #set(TRAINING_BOOK_USER_DIR "%HOMEDRIVE%%HOMEPATH%")
  set(TRAINING_BOOK_FILE_SEPARATOR "\\\\")
  set(TRAINING_BOOK_OS "Windows")
endif(CMAKE_SYSTEM_NAME MATCHES "Windows")

if(CMAKE_SYSTEM_NAME MATCHES "Linux")
  set(TRAINING_BOOK_RM_COMMAND "rm")
  set(TRAINING_BOOK_MKDIR_COMMAND "mkdir")
  set(TRAINING_BOOK_USER_DIR "$HOME")
  set(TRAINING_BOOK_USER_DIR_ENV_VAR "HOME" )
  set(TRAINING_BOOK_USER_DIR_DRIVE_ENV_VAR "NONE")
  set(TRAINING_BOOK_FILE_SEPARATOR "/")
  set(TRAINING_BOOK_OS "Linux")
endif(CMAKE_SYSTEM_NAME MATCHES "Linux")

configure_file(config.hpp.cmake config.hpp)